class H:
    def show(self):
        print("i am H")
    pass

class D(H):
    pass

class C(D):
    pass

class B(C):
    pass

class G(H):
    pass

class F(G):
    pass

class E(H):
    def show(self):
        print("i am E")
    pass

class A(B, E):
    pass

a = A()
a.show()
